<%@ page language="java"%><jsp:useBean id="instructorBean" scope="session" class="org.cgs.web.beans.InstructorHelperBean" />
<% 
    String courseCode = request.getParameter("courseCode");
  
    if(courseCode == null)
    {
       response.sendRedirect("myCourses.jsp");
    }
    else
    {     	instructorBean.setCourseCode(courseCode);    	instructorBean.getInstructorRole();    	
    	request.getSession().setAttribute("loggedIn", "true");
        request.getSession().setAttribute("courseCode", courseCode);
        response.sendRedirect("instructorMain.jsp");
    }
%>
